(#10962) Make sure managehome is respected on FreeBSD
When modifying the home directory of a user and managehome is set
the -m flag should be used with pw. This ensures that the new home
directory is created if it doesn't exist.
Also add test to verify this behaviour.