No need to fiddle around with layers:
* Cut your freehand line
* Change to any of the mask tools
* Paste (in place)

Phil