The parameter system is supposed to have a lock; implement one.
Merge pull request #408 from PX4/#407-param-lock

The parameter system is supposed to have a lock; implement one.